home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / rwvector.lha / RWVector2.1 / rw / compiler.h < prev    next >
C/C++ Source or Header  |  1989-08-18  |  1KB  |  53 lines

  1. #ifndef COMPILER_H
  2. #define COMPILER_H
  3. #pragma once
  4.  
  5. /*
  6.  *    Compiler related directives
  7.  *
  8.  *    Copyright (C) 1988, 1989.
  9.  *
  10.  *    Dr. Thomas Keffer
  11.  *    Rogue Wave Associates
  12.  *    P.O. Box 85341
  13.  *    Seattle WA 98145-1341
  14.  *
  15.  *    Permission to use, copy, modify, and distribute this
  16.  *    software and its documentation for any purpose and
  17.  *    without fee is hereby granted, provided that the
  18.  *    above copyright notice appear in all copies and that
  19.  *    both that copyright notice and this permission notice
  20.  *    appear in supporting documentation.
  21.  *    
  22.  *    This software is provided "as is" without any
  23.  *    expressed or implied warranty.
  24.  *
  25.  *
  26.  *    @(#)compiler.h    2.1    8/18/89
  27.  */
  28.  
  29. // Either version 1 or 2 defines AT&T compatible compiler
  30. #if defined(__ATT1__) || defined(__ATT2__)
  31. #define __ATT__
  32. #endif
  33.  
  34. // Version 2 allows extern "C" declarations
  35. #if defined(__ATT2__) || defined(__GNUG__)
  36.  
  37. #define Cdecl "C"
  38. #define Fortdecl "C"
  39.  
  40. #else Not version 2 compatible
  41.  
  42. #define Cdecl
  43. #define Fortdecl
  44.  
  45. #endif
  46.  
  47. // All versions need "overload" except ATT 2.0
  48. #ifndef __ATT2__
  49. #define NEEDS_OVERLOAD 1
  50. #endif
  51.  
  52. #endif COMPILER_H
  53.